<!DOCTYPE HTML>
<html>
<head>
  <meta charset="UTF-8">
  <title>点菜_${shopPo.name!}</title>
  <meta name="generator" content="editplus">
  <meta name="author" content="">
  <meta name="keywords" content="${shopPo.name!}">
  <meta name="description" content="${shopPo.name!}">
  <meta id="viewport" name="viewport" content = "width=device-width,  initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <!-- <meta name="apple-itunes-app" content="app-id=425349261"/> -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  
  <link href="/css/style.css" rel="stylesheet" type="text/css" />
  <link href="/css/productList.css" rel="stylesheet" type="text/css" />
  <script src="/js/common.js"></script>
  <script src="/js/jquery-1.11.0.min.js"></script>
   
 </head>
 <body>
 <!--div id="loading">菜单加载中..</div>  -->
 <div id="container">
	<div id="header" style="position:fixed;top:0px;">
		<div id="left"><a href="javascript:window.history.back();"><img src="/template/pic/transparent.png" class="return" /></a><h1>${shopPo.name!}</h1></div>
		<div id="right"><!-- <input type="button" value="一键点菜" onclick="" class="autoDish"> --></div>
	</div>
	<div id="menu">
		<div id="leftClassify">
			<ul id="classify">
				<#list productTypeList as type>
					<#if type_index == 0 >
						<li id="classify_${type.id!}" class="selected">${type.name!}</li>
					<#elseif type_index gt 0>
						<li id="classify_${type.id!}">${type.name!}</li>
					</#if>
				</#list>
				
			</ul>
		</div>
		
   		
   	<div id="productDiv" style="margin-top: 95px;">
	   	
	   	<section class="goods-list"></section>
	   	
	   	<#list map.keySet() as idKey> 
		
		<section  id="dishes_classify_${idKey!}"  class="<#if idKey_index==0>goods-list visible</#if><#if idKey_index gt 0>goods-list hidden</#if>">
		
			<#list map.get(idKey) as x >
				
				<dl id="dishes_${x.id!}" title="${x.name!}">
		    		<dt>	
		    			<a href="products.html"><img src="http://m.cyooy.com/pic/?p=pics/201353015195931.jpg&s=90-97-90"></a>
		    		</dt>
			    	<dd>
		    			<details open="open">
			    			<summary>${x.name!}</summary><!-- <mark>(100g/包)</mark> -->
			    			<p class="description">100g/包。麻辣鸭掌其香醇味美、味道独特、美味可口、爽滑鲜嫩、满口留香、让你吃了之后有悠长的回味感。秒杀产品请务必验收货，收货后不支持退换货。</p>  
			    		</details>    
			    		<p class="prices-info" style="float:left">
			    			<span style="float:left"><span><b><label>${x.now_price!}</label></b>元</span><del>￥16.00元</del></span>
			    			<span style="float:right">
			    			<input type="checkbox" id="dish_${x.id!}" name="dish_${x.id!}" class="floatRight">
			    			<!-- <input id="choosePro" type="button" id="dish_${x.id!}" name="dish_${x.id!}" value="选择" onclick="" class="btn"> -->
			    			</span>
			    		</p>
				    </dd>
				    
				</dl>
				
				
 			</#list>
 		</section>
 		
   		</#list>
	   	
	   	
	   <!-- 	<section class="goods-list">
	    	<dl>
	    		<dt>	
	    			<a href="products.html"><img src="http://m.caichongwang.com/images/thumbs/0029810_185..jpg"></a>
	    		</dt>
		    	<dd>
		    		<a href="products.html">
		    			<details open="open">
			    			<summary>秒杀麻辣鸭掌<mark>(100g/包)</mark></summary>
			    			<p class="description">100g/包。麻辣鸭掌其香醇味美、味道独特、美味可口、爽滑鲜嫩、满口留香、让你吃了之后有悠长的回味感。秒杀产品请务必验收货，收货后不支持退换货。</p>  
			    		</details>    
			    		<p class="prices-info"><span><b>￥5.00</b>元</span><del>￥16.00元</del></p>
			    	</a>
			    </dd>
			</dl>
			
			<dl>
				<dt>
					<a href="http://m.caichongwang.com/products.aspx?productId=2949"><img src="http://m.caichongwang.com/images/thumbs/0029555_185..jpg"></a>
				</dt>
				<dd>
					<a href="http://m.caichongwang.com/products.aspx?productId= 2949">
					    <details open="open">
				        	<summary>自然派猪肉条（蜜汁）<mark>(100g/ 袋)</mark></summary>
				        	<p class="description">100g/袋，自然派独特配方制作的辣味猪肉条，畅销香港，更是出口的优良产品。口感既不干涩，也不油腻，味道鲜美，又有嚼头。享受美食的同时还能补充能量。</p>  
				        </details>    
				        <p class="prices-info"><span><b>￥14.50</b>元</span><del>￥17.80元</del></p>
				    </a>
				</dd>
			</dl>
	    </section> -->
	</div>	
		<div id="orderInfo" align="right">
			合计￥<label id="sumPrice">0</label>元 共 <a href="#" onclick="openWindow(totalSelectedDishesTemp());" class="orderList"><label id="sumDishes">0</label>道菜<img src="/template/pic/transparent.png" class="orderListICO" /></a> &nbsp;&nbsp;
			<input type="button" value="菜点好了>> " onclick="submit('indRestaurant')" class="orderSubmit">
		</div>
		<div id="orderInfoA">
			<a href="javascript:showClassify();" id="choose" class="choose"><img src="/template/pic/transparent.png" id="chooseICO" class="chooseICO_B" /> 选择菜品分类</a>
			<a href="javascript:openWindow(totalSelectedDishesTemp());" style="display:none" class="orderList">已点 <label id="sumDishesA">0</label> <img src="/template/pic/transparent.png"  class="orderListICO" /></a>
			<a href="javascript:submit('indRestaurant')" style="display:none" class="orderSubmit">&nbsp;&nbsp;点好了<img src="/template/pic/transparent.png"  class="orderSubmitICO" /></a>
		</div>
	</div>
 </div>

  <script type="text/javascript" src="/js/menu.js"></script>
  <script type="text/javascript">
 /********登录弹出*******/
		//加载已点菜品，优先加载从地址栏带入的菜品（返回继续点菜等），然后才加载Cookie中储存的菜品
	if ( window.location.search.indexOf("id=") > 0 && window.location.search.split("=")[0]!="?sid" )
	{
		var orderDishes = window.location.search.split("id=")[1].split(",");
		if ( window.location.search.split("&") )//如果地址栏还有其它参数，只取菜品id
		{
			var orderDishes = window.location.search.split("id=")[1].split("&")[0].split(",");
		}
		for ( i=0 ; i < orderDishes.length ; i++ )
		{
			document.getElementById( "dishes_" + orderDishes[i] ).style.backgroundColor = '#E1E1E1';
			document.getElementById( "dishes_" + orderDishes[i] ).getElementsByTagName("input")[0].checked = true;
			selectedDishes.push( orderDishes[i] );
		}
		sum();
		
	}
	else{
		var cookieDishes = getCookie(shop).split(",");
		//alert( cookieDishes );
		for ( i=0 ; i < cookieDishes.length ; i++ )
			{
				document.getElementById( "dishes_" + cookieDishes[i] ).style.backgroundColor = '#E1E1E1';
				document.getElementById( "dishes_" + cookieDishes[i] ).getElementsByTagName("input")[0].checked = true;
				selectedDishes.push( cookieDishes[i] );
			}
		sum();
	}

	function submit(){
		var telNumber = prompt("请输入您的手机号");
		window.location.href = "-s=500-400-80&p=person-uploads-day_140508-201405082058245315.jpg.htm" + selectedDishes +"&sid=1594" + "&tel=" + telNumber ;
		//window.location.href = "-s=500-400-80&p=person-uploads-day_140508-201405082058245315.jpg.htm"/*tpa=http://m.cyooy.com/bookOrder.php?id=*/ + selectedDishes +"&sid=1594";
		//setCookie(shop,"",30);
	}
  </script>
 <script type="text/javascript">
	//var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	//document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F281b41435e2add0e5f52e2be6c13921e' type='text/javascript'%3E%3C/script%3E"));
 </script>
 </body>
</html>


